<div class="g-bd clearfix">
    <?php echo $this->render('index/left.phtml');?>
    <!-- 主栏 -->
    <div class="g-mn">
    	<div class="w-blk0 w-blk-pdlshow">
            <h1 class="blk0h2 f-iblk clearfix">
            <span class="spbg blkhdl"><a href="<?php echo MY_URL?>">Home</a> &gt; Your friends buy jersey, then you make money!</span>
                <span class="spbg blkhdr">
                	&nbsp;
                </span>                    
            </h1>
			<div class="black-friday-show">
				<?php if($this->member_type!="buyer"):?>
				<div id="invitationCopy" style="background:#fff9b1;height:90px;top:0px;right:11.3%;z-index:1000000;width:746px;" class="clearfix">
					<div style="float:left;margin:30px 0px 0px 20px;font-size:17px;font-weight:bold;">Your friends buy jersey, then you make money!</div>
					<div style="float:right;margin:20px 10px 0px 0px;">
						<a class="f-iblk" href="/auth-register?preurl=%2Fbring-a-friend-and-earn-with-us" style="background-color:#bd0000;color:#fff;padding:7px 20px 10px 20px;font-size:20px;margin-right:15px;">Join us</a>
						<a class="f-iblk" href="/auth-login?preurl=%2Fbring-a-friend-and-earn-with-us" style="background-color:#006b7e;color:#fff;padding:7px 20px 10px 20px;font-size:20px;">Login</a>
					</div>
				</div>
	        	<?php elseif($this->member_type=="buyer" && $this->hasBuy == 0):?>
	        	<div id="invitationCopy" style=" top:0px; right:11.3%;z-index:1000000;width:746px;">
	        		<div style="padding:5px;text-align:left;line-height:20px;background-color:#016575;border:4px #ffa200 solid;">
	        			<div style="color:white;font-size:11px;"><strong>Invitation link : </strong>************ (Those who sign up for bestcheapjerseydeal using your invitation link will become your referee.)</div>
	        			<div style="color:white;font-size:11px;"><strong>Invitation code: </strong>************ (Tell friends the code in case they don't sign up by invitation link.)</div>
	        			<div style="color:white;font-size:11px;font-size:14px;margin:10px;">Once you become our paying customer, you will get an invitation link plus an invitation code. No order amount required. <a style="text-decoration:underline;color:#fff;" href="/adminb?iframeUrl=adminb-mlm">Check my referee account here</a></div>
	        		</div>
	        	</div>
	        	<?php elseif($this->member_type=="buyer" && $this->hasBuy == 1):?>
	        	<div id="invitationCopy" style="padding:10px;text-align:left;line-height:20px;background-color:#fffd6a; top:0px; right:11.3%;z-index:1000000;width:725px;">
					<h2 style="color:#000;font-size:15px;text-align:center;">Your friends buy jersey, then you make money!</h2>
					<div style="margin-top:5px;"><strong>You are our paying customer, <a style="text-decoration:underline;" href="<?php echo MY_URL;?>/bring-a-friend-and-earn-with-us">see more about bestcheapjerseydeal 2013 Earning Plan</a></strong></div>
					<div style="color:#000;font-size:11px;">(<a style="pointer:cursor;" title="Those who sign up for bestcheapjerseydeal using your invitation link will become your referee.">?</a>) <strong>Your Invitation Link : </strong><input id="inlinkInput" style="width:450px;" type="text" value="<?php echo $this->marketingLink;?>" /></div>
					<div style="color:#000;font-size:11px;">(<a style="pointer:cursor;" title="Tell friends the code in case they don't sign up by invitation link.">?</a>) <strong>Your Invitation Code: </strong><input id="incodeInput" style="width:80px;" type="text" value="<?php echo $this->inviteCode;?>" /></div>
					<div style="color:#000;font-size:11px;"><a style="text-decoration:underline;color:#000;" href="/adminb?iframeUrl=adminb-mlm">Check my referee account here</a></div>
					<div style="margin:10px 0px 0px 0px;" class="clearfix">
						<span style="float:left;margin:10px 5px 0px 0px;font-sise:17px;font-weight:bold;">Share with: </span><span class="f-iblk" style="float:left;width:226px;height:39px;" id="shareThisBtn" ></span>
					</div>
					<script type="text/javascript">
						$(function(){
							stLight.options({publisher: "f0e640f7-8760-4a55-b739-e5aae5ea99e2", doNotHash: false, doNotCopy: false, hashAddressBar: true});
							stWidget.addEntry({
								"service":"sharethis",
								"element":document.getElementById('shareThisBtn'),
								"url":"<?php echo $this->marketingLink;?>",
								"title":"Bring a friend and earn with us!",
								"type":"large",
								"text":"Hey buddy, join bestcheapjerseydeal Money Plan with the invitation code: <?php echo $this->inviteCode;?>, save 10% for soccer jersey and start earning your great fortune!" ,
								"image":"<?php echo MY_URL;?>/images/mlm/sharelogo.jpg",
								"summary":"Hey buddy, join bestcheapjerseydeal Money Plan with the invitation code: <?php echo $this->inviteCode;?>, save 10% for soccer jersey and start earning your great fortune!"   
							});
							$('#shareThisBtn').find('.stLarge').css('background','url(/images/mlm/share.jpg) no-repeat center');
							$('#shareThisBtn').find('.stLarge').addClass('f-iblk');
							$('#shareThisBtn').find('.stLarge').css('width','226px');
							$('#shareThisBtn').find('.stLarge').css('height','39px');
							$('#inlinkInput').click(function(){
								$(this).select();
							});
							$('#incodeInput').click(function(){
								$(this).select();
							});
							$('#dontremindme').click(function(){
								var date=new Date(); 
								var expireDays=10; 
								date.setTime(date.getTime()+expireDays*24*3600*1000); 
								document.cookie="zcshop_mlmtips=no;expire="+date.toGMTString(); 
								$('#invitationCopy').hide();
							});
						});
					</script>
				</div>
	        	<?php endif;?>
				<table align="center" cellpadding="0" cellspacing="0" style="font-family:Verdana, Geneva, sans-serif;">
					<tbody>
				      	<tr>
				        	<td align="left" valign="middle" background="/images/mlm/bgtop.jpg" width="746" height="446">
				            	<div style="padding:155px 50px 0px 70px">
				            	<h2 style="font-size:16px;padding:10px 0px 10px 0px">Buy jersey, make money!</h2>
				                <div style="width:520px; font-size:14px; line-height:25px;">It is easy for you to join bestcheapjerseydeal 2013 Earning Plan. Here's an example. Shop for any products at bestcheapjerseydeal to become our paying customer. Then refer <strong>20</strong> friends to bestcheapjerseydeal, and your friends refer <strong>20</strong> too, then you will earn <strong style="color:#F00;">$12,630.00 (=12,630.00 credits)</strong>.</div>
				        		<div style="font-size:14px;line-height:25px; padding:0px 0px 0px 85px; font-weight:bold;">Incredible?? Yes, that's real! OK, here we go.</div>
				                </div>
				                <div id="lamountDiv" style="position:relative;">
				                    <input style="position:absolute;right:45px;top:-280px;width:99px;height:18px;font-weight:bold;font-size:13px;color:#000;" value="$12,630.00" id="earnAmount" readOnly="readOnly" />
				                    <input class="lamount" style="position:absolute;right:159px;top:-225px;width:76px;" value="20" />
				                    <input class="lamount" style="position:absolute;right:159px;top:-202px;width:76px;" value="20" />
				                    <input class="lamount" style="position:absolute;right:159px;top:-178px;width:76px;" value="20" />
				                    <a href="#" style="position:absolute;right:47px;top:-213px;display:inline-block;zoom:1;*display:inline;width:99px;height:36px;" id="calculateBtn"></a>
				                    <input class="lamount" style="position:absolute;right:45px;top:-155px;width:77px;" value="50" />
				                </div>
				            </td>
				      	</tr>
				        <tr>
				        	<td align="left" valign="top" background="/images/mlm/bgmid.jpg" width="746" height="592" bgcolor="#000000";>
				            	<div style="width:350px; font-size:12px; color:#FFF; line-height:20px;">
				                	<div style="padding:45px 0px 0px 60px;"><strong style="font-size:14px;">Step one: </strong>Become our paying customer and get the invitation link / invitation code which bestcheapjerseydeal provided.</div>
				                    <div style="padding:60px 0px 0px 60px;"><strong style="font-size:14px;">Step two: </strong>Share the invitation link to your friends through facebook, twitter, skype and so on.</div>
				                    <div style="padding:60px 0px 0px 60px;"><strong style="font-size:14px;">Step three: </strong>Earn commission when your referees become our paying customer.</div>
				                    <div style="padding:77px 0px 0px 60px;"><strong style="font-size:14px;">Step Four: </strong>Submit a commission withdrawal request by paypal. <a href="/adminb?iframeUrl=adminb-mlm-paypal"><img src="/images/mlm/paypal.jpg" /></a></div>
				                </div>
				                <div style="padding:74px 0px 0px 254px;"><a id="learnMore" href="#" style="display:block; width:243px; height:54px;"></a></div>
				            </td>
				      	</tr>
				        <tr class="f-hide" id="learnmoretr">
				        	<td align="left" valign="top" background="/images/mlm/bgbottom.jpg" width="746" height="995" bgcolor="#000000";>
				            	<div style="padding:110px 20px 0px 20px; font-size:11px; line-height:22px; color:#FFF;">
				                	<div style="font-weight:bold;">Step one: Become our paying customer and get the invitation link/ invitation code.</div>
				                    <div style="font-weight:bold; padding:10px 0px 0px 0px;">Step two: Share the invitation link to your friends.</div>
				                	<div>Those who sign up for bestcheapjerseydeal.com using your invitation link will become your referee. Important! Tell friends your user ID and invitation code just in case they don't sign up by invitation link. (This is how we track referrals)</div>
				                	<div style="font-weight:bold;padding:10px 0px 0px 0px;">Step three: Earn commission when your referees become our paying customer.</div>
				                    <div>Basically we pay out 3% of total amount in commissions per order that is registered in your 3 level networks. You are not limited by width. You can refer as many people as you want.</div>
				               		<div style="font-weight:bold;padding:10px 0px 0px 0px;">Step Four: Submit a commission withdrawal request.</div>
				                    <div style="padding-bottom:8px; border-bottom:1px dashed #FFF;">You can submit a withdrawal request whenever you want, no matter how much in your bestcheapjerseydeal account. Please provide your PayPal account number so that the commission can be transferred to you within 2 working days. <br /><a style="color:white;text-decoration:underline;" href="/adminb?iframeUrl=adminb-mlm-paypal">Submit a withdrawal request here</a></div>
				                    
				                   	<div style="padding-top:8px;"><strong>Q1: How to get started for this referral program?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A1: Simple! Buy anything available in bestcheapjerseydeal.com and you will get an invitation link plus an invitation code. Refer your friends to bestcheapjerseydeal.com by sharing invitation link/ code. Earn commission when your referee become our paying customer. <a style="color:white;text-decoration:underline;" href="/adminb?iframeUrl=adminb-mlm">You can check your referee statistics here.</a></div>
				                    <div><strong>Q2: What is invitation link?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A2: It is a link for you to refer friends to bestcheapjerseydeal.com in order to be eligible for commission.</div>
				                    <div><strong>Q3: What is invitation code?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A3: It is a code for referee to input if they don't sign up by invitation link. It's unique for each referrer.</div>
				                    <div><strong>Q4: What if my referees forget to input the invitation code?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A4: In that case, you can't get commission from their orders because this is how we track referrals. Therefore, it's important to let your friend sign up by invitation link or let them know the invitation code.</div>
				                    <div><strong>Q5: Can my referees get discount in their orders?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A5: Definitely! They will get extra 10% off if they input sponsor whey they sign up.</div>
				                    <div><strong>Q6: Where can I find my invitation link and invitation code?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A6: You can see them in your profile.</div>
				                    <div><strong>Q7: Is there any limit for referrals?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A7: No, there are no geographic or income limits.</div>
				                    <div><strong>Q8: How can I check my commission?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A8: Easy. It's shown in your profile. Or you may refer to our income calculator.</div>
				                    <div><strong>Q9: What is 3 level networks?</strong></div>
				                    <div style="padding:0px 0px 10px 0px;">A9: It means three generation of sales.</div>
				               	</div>
				            </td>
				      	</tr>
				 	</tbody>
				</table>
	        </div>
	        <div style="margin:0px 0px 10px 0px;"><div class="fb-like-box" data-href="http://www.facebook.com/bestcheapjerseydeal.Soccer.Jersey" data-width="747" data-height="143" data-show-faces="true" data-stream="false" data-header="true"></div></div>
	        <h1 class="blk0h2 f-iblk clearfix">
            <span class="spbg blkhdl">Those who shopped at bestcheapjerseydeal say :</span>
                <span class="spbg blkhdr">
                	&nbsp;
                </span>                    
            </h1>
	        <div class="black-friday-show">
	        <iframe scrolling="no" frameborder="0" width="746px" height="2100px" src="http://www.bestcheapjerseydeal.com/mlm-comment"></iframe>
	        </div>
	     </div>
    </div>
</div>
<script>
$('#lamountDiv .lamount').keyup(function(){;
	var _value = $(this).val();
	if(/[^\d]+/.test(_value)){
		$(this).val(_value.replace(/[^\d]/,''));
	}
});
$('#calculateBtn').click(function(){
	var _amounts = $('#lamountDiv .lamount');
	$.post(ROOT_PATH+"/mlm-calc",{l1:_amounts[0].value,l2:_amounts[1].value,l3:_amounts[2].value,amount:_amounts[3].value},function(data) {
		$('#earnAmount').val('$'+data);
	});	
	return false;
});
$('#learnMore').click(function(){
	if($('#learnmoretr').is(":hidden")){
		$('#learnmoretr').show();
	}else{
		$('#learnmoretr').hide();
	}
	return false;
});
$(window).scroll(function(){
	if($(this).scrollTop()>370){
		$('#invitationCopy').css('position','fixed');
	}else{
		$('#invitationCopy').css('position','static');
	}
});
</script>